From: kaf24@firebug.cl.cam.ac.uk Date: Tue, 10 Jan 2006 15:00:37 +0000 (+0100) Subject: Send guest output on all xen-attached console devices X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16544 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=86bf018541a52e155de3f75936c902bc93c855e7;p=xen.git Send guest output on all xen-attached console devices (i.e., on vga console as well as serial console, if dom0 didn't take over the vga console). Signed-off-by: Jan Beulich --- diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index 782ec814bf..e36285b7ca 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -311,7 +311,7 @@ static void serial_rx(char c, struct cpu_user_regs *regs) long guest_console_write(char *buffer, int count) { - char kbuf[128]; + char kbuf[128], *kptr; int kcount; while ( count > 0 ) @@ -334,6 +334,9 @@ long guest_console_write(char *buffer, int count) serial_puts(sercon_handle, kbuf); + for ( kptr = kbuf; *kptr != '\0'; kptr++ ) + putchar_console(*kptr); + buffer += kcount; count -= kcount; }